<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="keywords" th:content="${article.keywords}">
		<meta name="description" th:content="${article.description}">
		<title th:text="${article.title} + ' - ' + ${@module.get('sysConfig').SITE_NAME}"></title>
		<link rel="stylesheet" th:href="@{/libs/bootstrap/bootstrap.min.css}"/>
		<link rel="stylesheet" th:href="@{/libs/font-icon/icon.css}"/>
		<link rel="stylesheet" th:href="@{/libs/markdown/simplemde.min.css}">
		<link rel="stylesheet" th:href="@{/libs/markdown/github-markdown.min.css}">
		<link rel="stylesheet" th:href="@{/libs/markdown/highlight.min.css}">
		<link rel="stylesheet" th:href="@{/libs/theme/pblog/css/web-common.css}" />
		<link rel="stylesheet" th:href="@{/libs/theme/pblog/css/web-blog.css}" />
		<script th:inline="javascript">var ctx = [[@{/}]];</script>
		<script th:src="@{/js/jquery.min.js}"></script>
		<script th:src="@{/libs/bootstrap/bootstrap.min.js}"></script>
		<script th:src="@{/libs/markdown/highlight.min.js}"></script>
		<script th:src="@{/libs/markdown/simplemde.min.js}"></script>
		<script th:src="@{/libs/layer/layer.js}"></script>
		<script th:src="@{/js/hc-sticky.js}"></script>
		<script th:src="@{/js/core.js}"></script>
		<script th:src="@{/libs/theme/pblog/js/pb-blog.js}"></script>
	</head>
	<body>
		<header id="header">
			<div th:replace="home/fragments/navbar :: navbar"></div>
		</header>
		<div class="pb-container pb-content">
			<div class="pb-main">
				<div class="article-main">
					<h3 th:text="${article.title}" class="article-title"></h3>
					<span th:text="${article.original==1 ? '原创' : '转载'}" class="article-original"></span>
					<div class="article-meta">发布于 <span th:text="${#dates.format(article.createTime,'yyyy-MM-dd')}"></span> &nbsp;|&nbsp; <span th:text="${article.bizCategory.name}"></span> &nbsp;|&nbsp; 浏览（<span th:text="${article.lookCount}? ${article.lookCount} : 0"></span>） &nbsp;|&nbsp; 评论（<span th:text="${article.commentCount}? ${article.commentCount} : 0"></span>）</div>
					<hr class="hr0" />
					<div th:utext="${article.content}" class="article-body markdown-body editor-preview-active-side">
					</div>
					<!--<div class="article-zan-shang">
						<span class="article-zan"><i class="fa fa-thumbs-o-up"></i>点赞</span> <span>打赏</span>
					</div>-->
					<!--<div class="thumbs-content">
						<span class="thumbs-button fa fa-thumbs-up"> 点赞 <span id="loveCount" th:text="${article.loveCount}"></span></span>
						<span class="reward-button fa fa-money"> 打赏
						<p class="reward-content">
							<span class="reward-img"><img th:src="@{https://s1.ax1x.com/2020/08/10/abICef.th.jpg}"><br>微信赞赏</span>
							<span class="reward-img"><img th:src="@{https://s1.ax1x.com/2020/08/10/abICef.th.jpg}"><br>支付宝赞赏</span></p>
						<span class="reward-bottom"></span>
						<span class="reward-bottom-top"></span>
						</span>
					</div>-->
					<hr style="height:1px;border:none;border-top:1px dashed #0066CC;">
					<div class="block">
						<h4><span class="category">
							<a href="" rel="category tag" style="padding:5px;">应付金额：</a></span>
							<a href="" style="color:red;" th:text="${article?.price}"></a>
						</h4>
						<hr style="height:1px;border:none;border-top:1px dashed #0066CC;">
						<div style="float:left;vertical-align: middle;">
							<h4 style="float:left;margin-top: 12px;">
								<span class="category"> <a href="" rel="category tag" style="padding:5px;">支付方式：</a>
									<i class="fa fa-caret-right"></i></span>
							</h4>
							<ul data-commonpay-ele="platformList" style="float:left;">
								<li class="paytype selected" data-platformpay-type="ALIPAY" data-key="alipay" id="alipay-li">
									<div class="fl">
										<img src="https://s1.ax1x.com/2020/08/16/dVQ7ZT.png" style="vertical-align: middle;margin-top: 10px;margin-left: 8px;" data-bd-imgshare-binded="1">
									</div>
									<span>支付宝</span>
								</li>

								<li class="paytype" data-platformpay-type="WECHATV3" data-key="wxpay" id="wxpay-li">
									<div class="fl">
										<img src="https://s1.ax1x.com/2020/08/16/dVQXW9.png" style="vertical-align: middle;margin-top: 10px;margin-left: 8px;" data-bd-imgshare-binded="1">
									</div>
									<span>微信支付</span>
								</li>

							</ul>
						</div>
						<div class="clear"></div>
						<hr style="height:1px;border:none;border-top:1px dashed #0066CC;margin-top: 0px;">
						<div class="clear"></div>
						<!--<hr style="height:1px;border:none;border-top:1px dashed #0066CC;">-->
						<h4 style="margin-top: 12px;"><span class="category">
							<a href="javascript:void(0)" id="pay-btn" style="padding:8px;" rel="category tag">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;立即支付&nbsp;&nbsp;&nbsp;&nbsp;</a>
						</span>
						</h4>
					</div>
					<div class="postcopyright">
						<p><strong>温馨提示: </strong> 所有付费资料均经过测试，真实有效，付款成功后会显示百度云下载链接地址</p>
					</div>
				</div>
				<div th:if="${article.comment==1}" id="comment" class="comment comment-main">
					<div class="comment-title">发表评论</div>
					<form id="comment-form" class="form-horizontal mt-10">
						<input id="articleId" name="sid" type="hidden" th:value="${article.id}">
						<div id="user-name-content" class="user-name-content">欢迎您：<b id="user-name"></b></div>
						<div class="form-group" id="user-info" style="display: none">
							<div class="col-sm-4">
								<input id="nickname" type="text" class="form-control"  name="nickname" placeholder="昵称(必填)">
							</div>
							<div class="col-sm-4">
								<input id="qq" type="text" class="form-control"  name="qq" placeholder="QQ（可获取头像和昵称）">
							</div>
							<div class="col-sm-4">
								<input id="email" type="text" class="form-control"  name="email" placeholder="邮箱">
							</div>
						</div>
						<div class="form-group">
							<div class="col-xs-12">
								<textarea name="content" id="comment-textarea"></textarea>
							</div>
						</div>
						<div><button id="submitCommentBtn" type="button" class="btn btn-pri">发表评论</button></div>
					</form>
					<hr class="hr0 mt-15"/>
					<ul id="comment-ul" class="comment">
					</ul>
				</div>
			</div>
			<div th:replace="home/fragments/sidebar :: sidebar"></div>
		</div>
		<div th:replace="home/fragments/footer :: copyrightDark"></div>
		<div class="return_top"><a class=" fa fa-arrow-up"></a></div>
		<script>
			var sid=[[${article.id}]];
			Core.postAjax("/blog/api/article/look",{"articleId":sid})
			$(function () {
				$(".thumbs-button").click(function () {
                    Core.postAjax("/blog/api/love",{"bizId":sid,"bizType":1},function (data) {
                        if(data.status==200){
                            $("#loveCount").text(parseInt($("#loveCount").text())+1);
                        }
                    });
                })
            })
		</script>
		<script  th:if="${article.comment==1}" th:src="@{/js/comment.js}"></script>
		<script th:src="@{/js/player.js}"></script>
	</body>

</html>
<script type="text/javascript">
    /*$(document).ready(function(){
        $(".paytype").click(function(){
            $(".paytype").removeClass("selected");
            $(this).addClass("selected");
            $("input[name='payment']").val($(this).attr('data-key'));
        });
        /!*$("#pay-btn").click(function(){
            if($("#tel").val() == ''||$("#tel").val().length != 11){
                alert('手机号码必须填写，用来以后查询订单！');
                return;
            }
            $("input[name='tel']").val($("#tel").val());
            $("#add-order").submit();
        });*!/
    });*/
</script>
<style>
	.block {
		overflow: hidden;
		margin-bottom: 20px;
		padding-bottom: 20px;
		background-color: white;
		padding: 20px;
		border: 1px solid #ececec;
	}
	.block h2 {
		display: inline-block;
		padding-bottom: 15px;
		font-weight: 500;
		word-wrap: break-word;
		padding-top: 5px;
	}
	.block h2 a {
		font-size: 1.2em;
		color: #000;
	}
	.block h2 a:hover {
		color: #00a4dc;
	}
	.category {
		margin-right: 5px;
		color: #1f9dd4;
	}
	.category a {
		color: #fff!important;
		padding: 2px 5px;
		background-color: #0090ce;
		font-size: .9em!important;
		opacity: .88;
	}
	.category a:hover {
		background-color: #2dbdf4;
	}
	.category i {
		margin-left: -5px;
	}
	.paytype.selected {
		border: 1px solid #5aa700;
		background: url(https://s1.ax1x.com/2020/08/16/dVQ6Z8.png) no-repeat right bottom;
	}
	.paytype {
		float: left;
		width: 121px;
		height: 38px;
		border: 1px solid #ddd;
		/*line-height: 38px;*/
		margin: 3px 20px 25px 0;
		font-size: 14px;
		cursor: pointer;
	}
	.fl {
		float: left;
	}
	.paytype span {
		float: right;
		width: 76px;
		height: 19px;
		margin-top: 10px;
		text-align: center;
		line-height: 19px;
		border-left: 1px solid #ddd;
	}
	.clear {
		clear: both;
	}
	.postcopyright {
		padding: 13px 20px;
		margin: 10px 0;
		background-color: #f7f7f7;
		color: #393a3b;
	}
	.postcopyright a {
		color: #898989;
	}
</style>
